/**
 * 
 */
package com.idea.auction.controller;



import org.apache.log4j.Logger;
import org.apache.shiro.authz.annotation.RequiresPermissions;

import com.idea.auction.service.BillService;
import com.jfinal.ext.route.ControllerBind;
import com.jfinal.kit.StrKit;
import com.jfinal.server.Service;

/**
 * @author y.z
 */
@ControllerBind(controllerKey="/bill",viewPath="/pages")
public class BillController extends BaseController {
	private static final Logger log = Logger.getLogger(BillController.class);
	@Service
	private BillService billService;
	/**
	 * 跳转到账单页
	 */
	@RequiresPermissions("bill/toBillList")
	public void toBillList(){
		getNavigation();
		render("bill/bill-list.html");
	}

	
	/**
	 * 获取账单分页
	 */
	public void getBillList(){
		if(!StrKit.isBlank(getPara("curPage"))){
			curPage = getParaToInt("curPage");
		}
		super.setPage(billService.getPage(curPage));
	}


	
}	